﻿<!DOCTYPE html>
<html>
<head>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<form action="commentinput.html" accept-charset="gbk" target="_self">
    <div class="footbg1 mbtopbottom">
        <p><input type="text" placeholder="发表下您的点评" id="commentcontent" class="plkuang"></p>
    </div>
</form>
</body>
<script type="text/javascript">
    document.onkeydown = function (e) {
        e = e || event;
        if (e.keyCode == 13) {  //判断是否单击的enter按键(回车键)
            var content = document.getElementById("commentcontent").value;
            document.getElementById("commentcontent").value = null;
            document.getElementById("commentcontent").blur();
            parent.commitComment(content);
        }
    }
</script>

</html>
